<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[#assign path = var_contextpath + var_resrootpath + "/" +var_syscfg.sscTemplate/]
[#include "../inc/goods/goodsBox.html"]
[#include "../inc/goods/goodsList.html"]
[#include "../inc/common/pager.html"]
[#include "../inc/common/groupTree.html"]
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>分类列表页</title>
		<link rel="stylesheet" type="text/css" href="${path}/css/style.css" />
	</head>
	<body>
		[#include "../inc/common/head.html"]
		<div class="block box">
			<div id="ur_here">
				当前位置:<a href="${var_contextpath}/index.xhtml">首页</a><code>&gt;</code>
				[#switch var_goodstype]
					[#case "best"]
						精品推荐[#break]
					[#case "hot"]
						热卖商品[#break]
					[#case "new"]
						新品上市[#break]	
					[#default]
						搜索结果
						[#break]	
				[/#switch]
			</div>
		</div>
		<div class="blank"></div>
		<div class="block clearfix">
			<div class="AreaL">
				[#-- 读取商品分类数据的自定义标签，参数：par_treeid 选择分类ID。--]
				[#if var_member??]
				[#assign var_memberid = var_member.bmbId]
				[#else]
				[#assign var_memberid = var_memberid]
				[/#if]
				[@ecs_cartinfo par_memberid = var_memberid]
				<div class="cart" id="ECS_CARTINFO">
					<a href="${var_contextpath}/order/cartorder.xhtml" title="查看购物车">您的购物车中有 ${var_cartgoodsnum!'0'} 件商品，总计金额 ￥${var_carttotalprice!'0.00'}元。</a>
				</div>
				[/@ecs_cartinfo]
				<div class="blank5"></div>
				<div class="box">
					[#-- 读取商品分类数据的自定义标签，参数：par_treeid 选择分类ID。--]
					[@ecs_classified par_treeid = var_goodsgroup]
						[@ecs_grouptreeroot par_datalist = var_grouplist/]
					[/@ecs_classified]
				</div>
				<div class="blank5"></div>
			</div>
			<div class="AreaR">
				[#-- 读取商品列表数据的自定义标签，参数：par_goodstype 精品？新品？热销？团购，par_goodsgroup 商品分类(无值或空值默认所有)，
				par_pageindex 第几页，par_pagesize 显示数量，par_goodsbrand 商品品牌，par_pricemin 最低价格，par_pricemax 最高价格，par_keywords 关键字--]
				[@ecs_goodslist par_goodstype=var_goodstype par_goodsgroup=var_goodsgroup par_pageindex=var_pageindex par_pagesize=var_pagesize
				 par_goodsbrand=var_goodsbrand par_pricemin=var_pricemin par_pricemax=var_pricemax
				 par_selectedattr=var_selectedattr par_keywords=var_keywords]
				 	[#-- 商品列表数据自定义宏，var_goodslist 数据列表， var_listtype 展示数据的title--]					
					[@ecs_goodsdatalist var_goodslist = var_goodslist var_listtype = var_goodstype/]
				<div class="blank5"></div>
					[#-- 参数：par_total 查询得到的商品总数，par_href 请求路径，par_pagesize 分页大小，par_pageindex 第几页 --]
					[@ecs_goodspager par_total = var_goodslist.total 
						par_href = "${var_contextpath}/category.xhtml?type=${var_goodstype}&group=${var_goodsgroup}"
						par_pagesize = var_pagesize par_pageindex = var_pageindex
					/]
				[/@ecs_goodslist]					
			</div>
		</div>
		<div class="blank5"></div>
		[#include "../inc/common/help.html"]
		[#include "../inc/common/bottomNav.html"]
		[#include "../inc/common/footer.html"]
	</body>
</html>
